package com.br.pathfinding.test;

import java.text.SimpleDateFormat;
import java.util.Date;

class myThread extends Thread {

	@Override
	public void run() {

		System.out.println("running");

	}

}

public class teste {
	public static void main(String[] args) {

		SimpleDateFormat dateFormat = new SimpleDateFormat("HH:MM:SS");

		myThread myThread = new myThread();

		System.out.println(dateFormat.format(new Date()));

		myThread.start();

		for (int i = 0; i < 10000000000000000d; i++) {
			myThread.run();
		}

		System.out.println(dateFormat.format(new Date()));
	}
}
